/*
** Graphics.hh for 304Pacman in /home/mickael/test
**
** Made by mickael gomes
** Login   <gomes.mickael@epitech.net>
**
** Started on  ven. nov.  08 14:13:12 2013 mickael gomes
** Last update ven. nov.  08 14:13:12 2013 mickael gomes
*/

#ifndef								GRAPHICS_HH_
# define							GRAPHICS_HH_

#include							<vector>
#include							<string>
#include							<SFML/Graphics.hpp>
#include                        	<SFML/Window.hpp>

class 								Graphics
{
private:					//Attributes
	std::vector< std::pair<int*, bool> >	map_;
	int*							ghostCoord_;
	int								x_;
	int								y_;
	sf::RenderWindow				*window_;
	std::vector<int*>				path_;
	std::vector<int*>				coords_;
	std::vector< std::vector<int*> >paths_;
	sf::Font						font_;
	sf::Text						text_;
public:						//Ctor-Dtor
	Graphics(std::vector< std::pair<int*, bool> >, int*, int, int, std::vector<int*>);
	~Graphics();

public:						//Functions
	void							drawWall(int, int);
	void							drawTexture(int, int, std::string);
	void							drawNumber(int, int, int, int);
	void							drawMap();
	void							drawShortestPath(int, int, int, int);
	bool							checkValidPath(int, int);
	void							run();
};

#endif